package com.hqq.service;

import com.hqq.domain.WoocVideo;
import com.hqq.domain.WoocVideoRemark;
import com.hqq.vo.VideoVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * WoocVideoService
 * Created by heqianqian on 2018/3/25.
 */
public interface WoocVideoService {

    /**
     * 查询最热视频列表
     *
     * @return
     */
    List<WoocVideo> getHotVideos();

    /**
     * 查询最新视频列表
     *
     * @return
     */
    List<WoocVideo> getNewVideos();

    /**
     * 获取视频列表
     *
     * @param typeId
     * @param sortType
     * @param rankId
     * @return
     */
    List<WoocVideo> getVideoList(Long typeId, Long sortType, Long rankId, Integer pageNum);

    /**
     * 查询视频信息
     *
     * @param videoId
     * @return
     */
    VideoVO findVideo(Long videoId);

    /**
     * 发表评论
     *
     * @param userId
     * @param videoId
     * @param remarkContent
     */
    WoocVideoRemark publishRemark(Long userId, Long videoId, String remarkContent);

    /**
     * 插入视频
     *
     * @param woocVideo
     * @param file
     * @return
     */
    WoocVideo insertVideo(WoocVideo woocVideo, MultipartFile file,MultipartFile profileFile) throws IOException;

    /**
     * 删除视频
     *
     * @param videoId
     */
    void deleteVideo(Long videoId);
}
